using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace WebOS.Core.Security.Models
{
	public class UserInDeptMap : EntityTypeConfiguration<UserInDept>
	{
		public UserInDeptMap()
		{
			// Primary Key
			this.HasKey(t => new { t.UserId, t.DeptId });
				
			// Table & Column Mappings
			this.ToTable("UserInDept");
			this.Property(t => t.UserId).HasColumnName("UserId");
			this.Property(t => t.DeptId).HasColumnName("DeptId");
		}
	}
}

